package org.jeecg.modules.tencent_esign.tencent_contract.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.nurse_hospital.entity.NurseHospital;
import org.jeecg.modules.tencent_esign.tencent_contract.entity.TencentContractInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 电子签合同记录表
 * @Author: jeecg-boot
 * @Date:   2025-07-10
 * @Version: V1.0
 */
public interface TencentContractInfoMapper extends BaseMapper<TencentContractInfo> {
    /**
     * 更新机构信息表的腾讯电子签信息
     *
     * @param
     */
    void updateHosTencentInfo(@Param("proxyorganizationname") String proxyorganizationname,
                              @Param("proxyorganizationopenid") String proxyorganizationopenid,
                              @Param("operatorid") String operatorid,
                              @Param("operatorname") String operatorname,
                              @Param("operatortel") String operatortel
                              );

    List<NurseHospital>   selectHosByName(@Param("proxyorganizationname") String proxyorganizationname);

    /**
     * 合同签署成功后，根据身份证号更新用户表的is_verify字段
     *
     * @param
     */
    void updateNurseUser(@Param("name") String name);

    void updateNurseUser1(@Param("name") String name,@Param("phone") String phone);

    void updateNurseUserFamily(@Param("name") String name,@Param("phone") String phone);
}

